import request from "@/utils/request";

export function getListByPage(data) {
  return request({
    url: "/v2/Settlement/getListByPage",
    method: "post",
    data
  });
}

// 结算明细
export function getDetailListByPage(data) {
  return request({
    url: "/v2/Settlement/getDetailListByPage",
    method: "post",
    data
  });
}

// 批量结算
export function batchSettlement(data) {
  return request({
    url: "/v2/Settlement/batchSettlement",
    method: "post",
    data
  });
}

// 结算
export function settlement(data) {
  return request({
    url: "/v2/Settlement/settlement",
    method: "post",
    data
  });
}

// 订单统计
export function getListOrderByPage(data) {
  return request({
    url: "/v2/Order/getListByPage",
    method: "post",
    data
  });
}

// 订单操作记录
export function getOrderOpList(data) {
  return request({
    url: "/v2/Order/getOrderOpList",
    method: "post",
    data
  });
}

// 游戏分区列表
export function getGameServerList(data) {
  return request({
    url: "/v2/ParentPackage/getGameServerList",
    method: "post",
    data
  });
}

// 当前推广商推广员的结算数据
export function getAssistantSettlement(data) {
  return request({
    url: "/v2/Settlement/getAssistantSettlement",
    method: "post",
    data
  });
}

// 推广商推广员本人的结算数据
export function getPerSettleByPage(data) {
  return request({
    url: "/v2/Settlement/getPerSettleByPage",
    method: "post",
    data
  });
}